package route

import "github.com/gogf/gf/v2/net/ghttp"

func AddRoute(s *ghttp.Server, g *ghttp.RouterGroup) {
	// 注册路由
	// 默认是 /{.struct}/{.method}
	s.BindObject("/cfg/{.method}", &CfgCtrl{})
	s.BindObject("/chat/examples/{.method}", &ChatExamplesMonitor{})
	s.BindObject("/v2/{.method}", &V2Ctrl{})
	g.Bind(&YamlCtrl{})
}
